package com.seashop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 运营人员表
 * </p>
 *
 * @author moredln
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Admin对象", description="运营人员表")
public class Admin implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("`version`")
    private Integer version;

    @TableField("`order`")
    private Integer order;

    private String userName;

    @TableField("`password`")
    private String password;

    private String mobile;

    @TableField("idCard")
    private String idCard;

    private Boolean sex;

    private Integer age;

    private String nickName;

    private String avatar;

    private Boolean isDelete;

    private String invitationCode;

    private String countryCode;

    @ApiModelProperty(value = "是否冻结")
    private Boolean isFrozen;

    private Integer creatorId;

    private String creatorName;

    private String note;

    private LocalDateTime createDate;

    private LocalDateTime updateDate;

    private LocalDateTime lastLoginTime;


}
